<template>
  <div class="div-1">
    <div class="div-2">
      <span class="p-1">其他服务</span>
    </div>
    <div class="div-3">
      <div class="nav" v-for="(item, index) in nav" :key="index">
       <router-link :to="item.path">
            <img :src="item.URL" alt="" />
        <p class="p-1">{{ item.pin }}</p>
       </router-link>
       
      </div>
    </div>
  </div>
</template>

<script>
import qianbao from '../../assets/qianbao.png'
import td from '../../assets/td.png'
import dizhi from '../../assets/dizhi.png'
import sc from '../../assets/sc.png'
export default {
  data() {
    return {
      nav: [
        {
            path:'/ShouCang',
          URL: qianbao,
          pin: "我的钱包",
        },
        {
            path:'/TuanDui',
          URL: td,
          pin: "我的团队",
        },
        {
            path:'/ShouCang',
          URL: dizhi,
          pin: "地址管理",
        },
        {
            path:'/ShouCang',
          URL: sc,
          pin: "我的收藏",
        },
      ],
    };
  },
};
</script>

<style lang="less" scoped>
.div-1 {
  background-color: #ffffff;
  margin: 0 0.7rem 1rem 0.7rem;
  border-radius: 0.7rem;
  .div-2 {
    height: 1.5rem;
    line-height: 1.5rem;
    .p-1 {
      font-size: 0.9rem;
      font-weight: 600;
    }
  }
  .div-3 {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.3rem;
    .nav {
      width: 3rem;
      position: relative;
      padding: 0.1rem;
      img {
        width: 1.8rem;
      }
      .p-1 {
          font-weight: 600;
        font-size: 0.7rem;
      }
    }
  }
}
</style>